/*闲置物品模块接口*/
import request from "@/utils/request";

//根据闲置物品id删除闲置物品信息
export function deleteIdle(data){
    return request({
        url:'/idle/deleteIdle',
        method:'post',
        data
    })
}

//根据闲置物品信息评论id删除该条评论
export function deleteIdleComment(data){
    return request({
        url:'/idle/deleteIdleComment',
        method:'post',
        data
    })
}

//获取全部闲置物品信息
export function getAllIdleInfoByAdmin(data){
    return request({
        url:'/idle/getAllIdleInfoByAdmin',
        method:'post',
        data
    })
}

//修改审核情况
export function updateCheckByIdleId(data){
    return request({
        url:'/idle/updateCheckByIdleId',
        method:'post',
        data
    })
}

//修改闲置物品信息
export function updateIdle(data){
    return request({
        url:'/idle/updateIdle',
        method:'post',
        data
    })
}

//获取全部闲置物品评论
export function getAllIdleComment(data){
    return request({
        url:'/idle/getAllIdleComment',
        method:'post',
        data
    })
}

//修改评论
export function updateIdleComment(data){
    return request({
        url:'/idle/updateIdleComment',
        method:'post',
        data
    })
}

//计算数量
export function getIdleCnt(data){
    return request({
        url:'/idle/getIdleCnt',
        method:'post',
        data
    })
}
